import { Person } from '@/pages/people/interface';
import { IDType } from '../personnelEntry/interface';

export interface BorrowBookState {
    id: string; //租赁id
    order_no: string; //订单号
    rfid: string; //RFID码
    isbn: string; //ISBN码
    status: string; //1为租赁中、2为已归还
    book_name: string; //书籍名称
    author: string; //作者
    publishing_house: string; //出版社
    publish_date: string; //出版日期
    img_url: string; //书籍封面url
    cate_id: string; //分类id
    cate_name: string; //分类名称
    username: string; //用户
    no_type: string; //用户证件类型
    no: string; //证件编号
    address: string; //用户地址
    rent_time: string; //租赁时间
    finish_time: string; //归还时间
    book_id: string;
    borrow_user_id: string;
    borrow_username: string;
    return_user_id: string;
}

export interface RequestParams
    extends Pick<
        BorrowBookState,
        'order_no' | 'rfid' | 'isbn' | 'book_name' | 'cate_id'
    > {
    create_time: string;
    finish_time: string;
}
